#pragma once

#include <iostream>
#include <unordered_map>

#include <cinatra.hpp>



struct api_res
{
	int http_code;
	int status;
	std::string body;
	std::string msg;
	std::unordered_map<std::string, std::string> headers;
};

class request_param {
public:
	void put(const std::string key, const std::string value);
	void put(const std::string key, const char * value);
	void put(const std::string key, bool value);
	void put(const std::string key, int value);
	std::string dump();
	std::string to_json();
	int size();
private:
	std::unordered_map<std::string, std::string> params;
};
